home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
comm
/
term
/
amitel110.lha
/
AmiTEL
/
AmiTEL.install
< prev
next >
Wrap
Text File
|
1994-07-18
|
5KB
|
224 lines
;
; $VER: Installation d'AmiTEL v1.1 (18/07/94)
;
; Installer script pour AmiTEL.
;
; Made by Pascal Rullier (1.1)
; Pascal Grange (up to 1.04)
(set @default_dest "")
(set UserLevel.old @user-level)
; ======================================================
; English Strings
(set default_lang 4)
(set #install-msg
(cat "\nWelcome to the AmiTEL v1.1 installation d'AmiTEL\n"
"It's made with 'Installer' of Commodore for\n"
" Amiga Computers.\n\n"
"Read the documentation for\n"
"more informations on the distribution\n"
"and commercial usage of AmiTEL.\n"
"AmiTEL © 1992-1994 Pascal Grange\n"))
(set #WrongKickStart "You must be using Kickstart 2.04+ to install using this script!")
(set #CopyingReqTools "Copy of ReqTools.library in LIBS:")
(set #prompt-msg "\nChoose the drive where AmiTEL is.\n")
(set #prompt-dest-msg
(cat "\nChoose or create a drawer where you"
" want instal AmiTEL.\n"))
(set #prompt-copy-msg "\nChoose files to install:\n")
(set #prompt-doc-msg "\nDo you want install the AmiTEL documentation ?")
(set #prompt-file-msg "\nChoose file to install:\n")
(set #prompt-rexx-msg "\nDo you want to install ARexx examples files ?")
(set #choice-doc "AmiTEL.English.guide")
(set #Reqtoolmsg
(cat "\n"
"For working, AmiTEL needs the ReqTools.library.\n"
"\n"
"Before installing, I go to check the version of "
"ReqTools.library. If you have a recent version, I "
"will not install it.\n"))
; Initialisation des messages.
; ======================================================
; Chaînes françaises
(if (= @language "français")
(
(set default_lang 8)
(set #WrongKickStart "\nAmiTEL ne fonctionne qu'avec un KickStart >= à 2.04.")
(set #CopyingReqTools "Copie de ReqTools.library dans LIBS:")
; Message de Bienvenue.
(set #install-msg
(cat "\nBienvenue sur le programme d'installation d'AmiTEL v1.1.\n"
" Cette installation est réalisée avec le programme\n"
" 'Installer' de Commodore pour les ordinateurs Amiga.\n\n"
"Pour plus d'informations sur la distribution d'AmiTEL et\n"
"l'usage commercial, voir la documentation\n"
"AmiTEL © 1994 Pascal Grange\n"))
(set #prompt-msg "\nSélectionnez le lecteur sur lequel se trouve AmiTEL.\n")
(set #prompt-dest-msg
(cat "\nSélectionnez ou créez un répertoire dans lequel vous"
" voulez installer AmiTEL.\n"))
(set #prompt-copy-msg "\nSélectionnez les fichiers à installer:\n")
(set #prompt-doc-msg "\nVoulez vous installer la documentation d'AmiTEL ?")
(set #prompt-file-msg "\nSelectionnez le fichier à installer:\n")
(set #prompt-rexx-msg "\nVoulez vous installer les fichiers d'exemples ARexx ?")
(set #choice-doc "AmiTEL.guide")
(set #Reqtoolmsg
(cat "\n"
"Pour fonctionner, AmiTEL utilise la ReqTools.library.\n"
"\n"
"Avant de l'installer, je vais vérifier que vous n'avez "
"pas une version plus récente de ReqTools.library.\n"
"Si c'est le cas, je ne l'installerai pas.\n"))
))
(complete 0)
(message #install-msg )
; S'assurer que l'on utilise un KickStart >= à 2.04.
(if (< (/ (getversion) 65536) 37)
(abort #WrongKickStart)
)
; Copie du fichier exécutable et de la documentation d'AmiTEL.
(set #Path.Source
(tackon
(askdir
(prompt #prompt-msg )
(help @askdir-help)
(default (pathonly @icon))
)
""
)
)
(set #Path.Dest
(tackon
(askdir
(prompt #prompt-dest-msg)
(help @askdir-help)
(default "SYS:")
)
""
)
)
(copyfiles
(prompt #prompt-copy-msg)
(help @copyfiles-help)
(source #Path.Source)
(dest #Path.Dest)
(choices "AmiTEL"
"BBTPro")
(infos)
(confirm)
)
(complete 40)
; Copie du fichier AmiTEL.guide.
(if
(askbool
(prompt #prompt-doc-msg)
(help @askbool_help)
(default 1)
)
(
(copyfiles
(prompt #prompt-file-msg
(help @copyfiles-help)
(source #Path.Source)
(dest #Path.Dest)
(choices #choice-doc)
(infos)
(confirm)
)
)
)
)
(complete 60)
; Copie des fichiers d'exemples ARexx.
(if
(askbool
(prompt #prompt-rexx-msg)
(help @askbool_help)
(default 1)
)
(
(copyfiles
(prompt #prompt-file-msg
(help @copyfiles-help)
(source "Rexx")
(dest "REXX:")
(pattern "#?.rexx")
(confirm)
)
)
)
)
(complete 80)
; Copie de la librairie ReqTools.
(message #Reqtoolmsg)
(copylib
(prompt "\n" #CopyingReqTools)
(help @copylib-help)
(source "Libs/reqtools.library")
(dest "LIBS:")
(confirm)
)
(set @default_dest #Path.Dest)
(complete 100)
; End of Program
(exit)